package client.utility;

import java.io.Serializable;

public class Id implements Comparable<Id>, Serializable {
	int id;
	
	public Id(int d){
		id=d;
	}
	
	public String toString(){
		return ""+id;
	}
	
	public int compareTo(Id o) {
		return o.id-id;
	}
	
	public boolean equals(Object o){
		if(o instanceof Id){
			return id==((Id)o).id;
		}
		return false;
	}
	
	public int hashCode(){
		return id;
	}

}
